<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/12/012
 * Time: 10:43
 */

namespace app\api\validate;


class OrderFigureMeasureDataValidate extends BaseValidate {
    protected $rule = [
        'order_id' => 'isPositiveInteger',
        'stature' => 'isPositiveInteger',
        'weight' => 'isFloatOrPositiveInteger',
        'size' => 'require|in:XS,S,M,L,XL,XXL,XXXL',
        'head_size' => 'isFloatOrPositiveInteger',
        'neck_line' => 'isFloatOrPositiveInteger',
        'front_cross' => 'isFloatOrPositiveInteger',
        'back_across' =>  'isFloatOrPositiveInteger',
        'brachium' =>  'isFloatOrPositiveInteger',
        'biceps_circumference' =>  'isFloatOrPositiveInteger',
        'wrist_circumference' =>  'isFloatOrPositiveInteger',
        'shoulder' =>  'isFloatOrPositiveInteger',
        'outside_sleeve' =>  'isFloatOrPositiveInteger',
        'muffs' =>  'isFloatOrPositiveInteger',
        'sleeve_width' =>  'isFloatOrPositiveInteger',
        'chest_circumference' =>  'isFloatOrPositiveInteger',
        'bust_point' =>  'isFloatOrPositiveInteger',
        'chest_distance' =>  'isFloatOrPositiveInteger',
        'waistline' =>  'isFloatOrPositiveInteger',
        'front_waist_length' =>  'isFloatOrPositiveInteger',
        'back_waist_band' =>  'isFloatOrPositiveInteger',
        'hipline' =>  'isFloatOrPositiveInteger',
        'hip_gear' =>  'isFloatOrPositiveInteger',
        'thigh_circumference' =>  'isFloatOrPositiveInteger',
        'inside_leg_length' =>  'isFloatOrPositiveInteger',
        'calf_girth' => 'isFloatOrPositiveInteger',
        'leg_opening' => 'isFloatOrPositiveInteger',
        'outside_length' => 'isFloatOrPositiveInteger',
        'tong_fork' => 'isFloatOrPositiveInteger',
        'forepart_length' => 'isFloatOrPositiveInteger',
        'center_back_length' => 'isFloatOrPositiveInteger',
        'after_the_length' => 'isFloatOrPositiveInteger',
        'habit' => 'require|in:紧身,合身,宽松',
        'msg' => 'require',
        'age' => 'require|between:0,130',
        'image_1' => 'require',
        'image_2' => 'require',
        'image_3' => 'require',
    ];
}